﻿using System.Text.Json.Serialization;

namespace movie.tool.module.film.model
{
    /// <summary>
    /// 线索卡
    /// </summary>
    public class ClueCard
    {
        public ClueCard()
        {
        }

        public ClueCard(long id, string name, string filePath)
        {
            this.Id = id;
            this.Name = name;
            this.FilePath = filePath;
        }
        /// <summary>
        /// 唯一标识
        /// </summary>
        [JsonPropertyName("id")]
        public long Id { get; set; }
        /// <summary>
        /// 线索类型,pic-图片线索卡;vid-视频线索;aud-音频线索
        /// </summary>
        [JsonPropertyName("type")]
        public string Type { get; set; }
        /// <summary>
        /// 所属分组id
        /// </summary>
        [JsonPropertyName("group")]
        public long Group { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [JsonPropertyName("name")]
        public string Name { get; set; }
        /// <summary>
        /// 相对路径
        /// </summary>
        [JsonPropertyName("filePath")]
        public string FilePath { get; set; }
        public bool TypePic()
        {
            return "pic".Equals(Type);
        }
        public bool TypeVideo()
        {
            return "vid".Equals(Type);
        }
        public bool TypeAudio()
        {
            return "aud".Equals(Type);
        }
    }
}
